package com.neo.web;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.neo.entity.UserEntity;
import com.neo.service.IUserService;


/**
 * ajax数据
 * @author Administrator
 *
 */

@RestController
public class UserController {
	
	@Autowired
	private IUserService userService;
	
    @RequestMapping("/getUser")
    public List<UserEntity> getUser() {
    	return userService.getuserAll();
    }
    
   /* 
    @RequestMapping("/add")
    public void save(UserEntity user) {
    	userMapper.insert(user);
    }
    
    @RequestMapping(value="update")
    public void update(UserEntity user) {
    	userMapper.update(user);
    }
    
    @RequestMapping(value="/delete/{id}")
    public void delete(@PathVariable("id") Long id) {
    	userMapper.delete(id);
    }
    */
    
}